<?php TPL::output('admin/global/header.tpl.htm'); ?>
<?php TPL::output('admin/global/nav_menu.tpl.htm'); ?>
<style>

    .table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td {
        padding: 0px 8px;
        vertical-align: top;
        height:70px;
        line-height: 70px;
        border-top: 1px solid #ddd;
    }
    .table-setting-tr {
        vertical-align: middle;
    }

    .setting-value {
        display: inline-flex;
        vertical-align: middle;
    }
    .tutorial-link {
        color: #428bca;
        font-size: 14px;
        text-decoration: underline;
    }
    .table-setting-tr .icheckbox_square-blue{
        top: 25px;
    }
    .table-setting-tr td{
        font-size: 14px;
        color:#333333;
        vertical-align: middle;
    }
</style>
<div class="aw-content-wrap">
    <div class="mod">
        <div class="mod-head">
            <h3>
                <span class="pull-left"><?php _e('神箭手数据发布');?></span>
            </h3>
        </div>
        <div class="tab-content mod-content" style='padding: 0px 20px;'>
            <form action="admin/shenjianshou/ajax_ta/" method="post" id="config_form">
                <table class="table" cellspacing='0' cellpadding='0'>
                    <tbody>
                    <tr class='table-setting-tr'>
                        <td width="200" style="border-top:none;">当前插件版本</td>
                        <td style="border-top:none;"><div class="setting-value"><a href="http://www.shenjian.io/index.php?r=home/download" target="_blank" class='tutorial-link' style="line-height: 70px;"><span style="font-size: 14px;">v<?php _e($this->ta_version);?></span></a>
                        </div></td>
                    </tr>
                    <tr class='table-setting-tr'>
                        <td>神箭手云官网</td>
                        <td><div class="setting-value"><a href="http://www.shenjian.io" target="_blank" class='tutorial-link'>www.shenjian.io</a></div></td>
                    </tr>
                    <tr class='table-setting-tr'>
                        <td>发布网址</td>
                        <td>
                            <div class="setting-value">
                                <?php if($this->is_intranet){ ?>
                                <span style="padding-left:5px;color: #e80503;">(当前页面是通过内网访问，无法获取当前公网IP或域名，神箭手不支持发布到内网，请切换至外部网络获取网站发布地址)</span>
                                <?php }else{ ?>
                                <span style="width:500px;padding-left:5px;"><?php _e($this->basic_web_address);?></span>
                                <span class="" style='margin-left: 10px'>此地址为您网站访问地址，您可以复制该地址并填入神箭手后台 Wecenter 发布接口配置中的发布网址输入框内</span>
                                <?php }?>
                            </div>
                        </td>
                    </tr>
                    <tr class='table-setting-tr'>
                        <td>发布密码</td>
                        <td>
                            <div class="setting-value">
                                <input type="text" name="ta_password" value="<?php _e($this->ta_config['ta_password']);?>" style="width:500px;margin: 20px 0px 0px 0px;height: 30px;line-height: 30px;padding-left: 5px;" />
                                <span class="" style='margin-left: 10px'>建议修改成自己的常用密码，并填入神箭手后台Wecenter发布选项中的发布密码输入框内</span>
                            </div>
                        </td>
                    </tr>
                    <tr class='table-setting-tr'>
                        <td>是否标题去重</td>
                        <td>
                            <div class="setting-value">
                                <?php if($this->ta_config['ta_unique']){ ?>
                                <input type="checkbox" name="ta_unique" value="1" checked />
                                <?php }else{ ?>
                                <input type="checkbox" name="ta_unique" value="1"/>
                                <?php } ?>
                                <span class="" style='margin-left: 10px'>(不重复插入相同标题)</span>
                            </div>
                        </td>
                    </tr>
                    <tr class='table-setting-tr'>
                        <td>相关教程：</td>
                        <td><a href="http://docs.shenjian.io/overview/guide/pub.html" target="_blank" class="tutorial-link">如何发布数据</a></td>
                    </tr>
                    <tr class='table-setting-tr'>
                        <td style="line-height: 110px;">说明：</td>
                        <td style="line-height: 25px;">
                            <p style="margin-top: 10px">神箭手wecenter数据发布插件，可以将神箭手上爬虫采集的数据、购买的数据、导入的数据、清洗后的数据、机器学习的数据等一键发布到该网站。只需要简单的配置即可实现自动化批量发布，功能丰富强大！</p>
                            <p>1、数据采集爬取请在神箭手官网操作（<a href="http://docs.shenjian.io/overview/guide/collect.html" target="_blank" class="tutorial-link">如何爬取数据</a>），采集的数据可以通过该插件发布到wecenter网站</p>
                            <p>2、神箭手<a href="http://www.shenjian.io/index.php?r=market/productList" target="_blank" class="tutorial-link">大数据市场</a>内有很多热门网站的爬虫（包括
                                <a href="http://www.shenjian.io/index.php?r=market/search&keyword=%E5%BE%AE%E4%BF%A1%E5%85%AC%E4%BC%97%E5%8F%B7" target="_blank" class="tutorial-link">微信公众号文章采集</a>、
                                <a href="http://www.shenjian.io/index.php?r=market/search&keyword=%E5%BE%AE%E5%8D%9A" target="_blank" class="tutorial-link">微博采集</a>、
                                <a href="http://www.shenjian.io/index.php?r=market/search&keyword=%E4%BB%8A%E6%97%A5%E5%A4%B4%E6%9D%A1" target="_blank" class="tutorial-link">今日头条采集</a>、
                                <a href="http://www.shenjian.io/index.php?r=market/search&keyword=%E7%BE%8E%E5%9B%A2" target="_blank" class="tutorial-link">美团采集</a>、
                                <a href="http://www.shenjian.io/index.php?r=market/search&keyword=%E6%B7%98%E5%AE%9D" target="_blank" class="tutorial-link">淘宝</a>等电商采集等），您可以免开发直接使用</p>
                        </td>
                    </tr>
                    </tbody>
                    <tfoot>
                    <tr>
                        <td colspan="2">
                            <input type="button" value="<?php _e('保存设置'); ?>" class="btn btn-primary" style="background-color:#428bca;" onclick="AWS.ajax_post($('#config_form'), function (type, result) {
                                                AWS.alert(result.err);
                                                if (result.errno == -1) {
                                                    $('#proxy-url').val(result.rsm);
                                                }
                                            });" />
                        </td>
                    </tr>
                    </tfoot>
                </table>
            </form>
        </div>
    </div>
</div>

<?php TPL::output('admin/global/footer.tpl.htm'); ?>
